import request from '@/utils/request'

// 查询温箱列表
export function listBox(query) {
  return request({
    url: '/system/box/list',
    method: 'get',
    params: query
  })
}

// 查询温箱详细
export function getBox(fId) {
  return request({
    url: '/system/box/' + fId,
    method: 'get'
  })
}

// 新增温箱
export function addBox(data) {
  return request({
    url: '/system/box',
    method: 'post',
    data: data
  })
}

// 修改温箱
export function updateBox(data) {
  return request({
    url: '/system/box',
    method: 'put',
    data: data
  })
}

// 删除温箱
export function delBox(fId) {
  return request({
    url: '/system/box/' + fId,
    method: 'delete'
  })
}
